package com.dhcc.DRGsHosp.web.controller;

import org.openkoala.koala.commons.InvokeResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dhcc.DRGsHosp.facade.DRGVersionFacade;

@Controller("drgsHospWebController16")
@RequestMapping("/DRGVersion")
public class DRGVersionController {
		
	@Autowired
	private DRGVersionFacade drgVersionFacade;

    /**
     * 
     * @methodname    :getDrgVerCode
     * @description   : 获取DRGVerCode
     * @param         :
     * @author        :mazhaoyan
     * @return        :
     * @date          :2016年7月19日
     */
    @ResponseBody
	@RequestMapping(value = "/getDrgVerCode", method = RequestMethod.POST)
	public InvokeResult getDrgVerCode() {
		return InvokeResult.success(drgVersionFacade.getDrgVerCode());
	}
    
    @ResponseBody
    @RequestMapping(value = "/findAllVersion")
    public InvokeResult findAllVersion() {
    	return InvokeResult.success(drgVersionFacade.findAllVersion());
    }
    
}
